﻿
using EMS.system.IEntityAppService.MasterData.SupplierManagementIService.SupplierManagementDto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Dynamic.Core;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;

namespace EMS.system.IEntityAppService.MasterData.SupplierManagementIService
{
    public interface ISupplierManagementAppServices : IApplicationService
    {
        /// <summary>
        /// 分页显示
        /// </summary>
        /// <param name="SupplierManagementCode"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        (List<SelectSupplierManagementDto> units, int total) GetSupplierManagement(string? SupplierManagementCode, int pageIndex, int pageSize);
        /// <summary>
        /// 新增供应商管理
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<int> InsertSupplierManagement(SelectSupplierManagementDto dto);
        /// <summary>
        /// 反填供应商管理
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<SelectSupplierManagementDto> GetUpdateSupplierManagement(int id);
        /// <summary>
        /// 修改供应商管理
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<int> UpdateSupplierManagement(SelectSupplierManagementDto dto);

        /// <summary>
        /// 反填
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<SelectSupplierManagementDto> GetUpdate(int id);
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DeleteSupplierManagement(int id);
    }
}
